package com.ycz.sas.jgen.util;

import java.io.InputStream;
import java.net.URL;
import java.util.ResourceBundle;

public class Resource {

	public URL getResource(String url){
		return getClass().getResource(url);
	}
	
	public InputStream getResourceAsStream(String url){
		return getClass().getResourceAsStream(url);
	}
	
	public String getResourceString(String baseName, String key){
		return ResourceBundle.getBundle(baseName).getString(key);
	}

}
